package com.test.system.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.client.RestTemplate;

import java.util.HashSet;
import java.util.Set;

/**
 * @author 徒有琴
 */
@SpringBootApplication
@MapperScan(basePackages = "com.test.system.admin.dao")
//@ComponentScan(basePackages = {"com.test.system.admin.service","com.test.system.admin.controller"})
public class AdminStarter {
    public static void main(String[] args) {
        SpringApplication.run(AdminStarter.class, args);
    }
    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
